home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2122 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  25 lines

  1. Newsgroups: comp.lang.c
  2. Path: mxsld2.pd.infn.it!LORETI
  3. From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
  4. Subject: Re: Checking for a file => Does it exist (Help)
  5. X-Nntp-Posting-Host: mxsld2.pd.infn.it
  6. Message-ID: <DLF3zJ.43p@news.cern.ch>
  7. Sender: news@news.cern.ch (USENET News System)
  8. Reply-To: loreti@mxsld2.pd.infn.it
  9. Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
  10. References: <4d9k6fINNnja@faatcrl.faa.gov> <4dc6kq$dja@gryphon.phoenix.net>,<30FCF419.3B44@rennes.cern.ch>
  11. Date: Fri, 19 Jan 1996 07:40:29 GMT
  12.  
  13. In article <30FCF419.3B44@rennes.cern.ch>, "S. Lechner" <slechner@rennes.cern.ch> writes:
  14. >Use the C function access(filename,status)
  15. >
  16. >Stef.
  17.  
  18. 'access' is NOT a standard C function; is not listed in K&R I or II,
  19. or Plauger.  Your best bet is to try to open the file for reading; but
  20. this can fail not only if the file does not exist - also if you don't
  21. have permission to read and so on.
  22. --
  23. Maurizio Loreti                       http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
  24. Un. of Padova, Dept. of Physics - Padova, Italy          loreti@padova.infn.it
  25.